SPRITE WIDTH

This command will return an integer value of the width of the specified sprite determined by the width of the current image being used.

  Syntax
Return Integer=SPRITE WIDTH(Sprite Number)
  Parameters
Sprite Number
Integer
The sprite number

  Returns

The command will return an integer value of the width of the specified sprite determined by the width of the current image being used

  Description

The parameter should be specified using an integer value.

  Example Code
cls
load image "man.bmp",1
sprite 1,100,100,1
wait 1000*8
print "sprite width= "+str$(sprite width(1) )
do
loop
end
  See also

SPRITE Commands Menu
Index